package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.domain.Member;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

public interface MemberMapper {
    List<Member> findAll();
    Page<Member> selectByCondition(String queryString);
    void add(Member member);
    void deleteById(Integer id);
    Member findById(Integer id);
    Member findByTelephone(String telephone);
    void edit(Member member);
    Integer findMemberCountBeforeDate(String date);
    Integer findMemberCountByDate(String date);
    Integer findMemberCountAfterDate(String date);
    Integer findMemberTotalCount();
    Page<Member> findPage(String queryString);

    /*更新会员信息*/
    void updateByOrder(@Param("m_name") String m_name,@Param("m_id") Integer m_id);

    void edit2Telephone(@Param("id") Integer id,@Param("phoneNumber") String telephone);

    Member findSingleMember(Integer id);

    /*预约时新增会员*/
    void saveMember(Member m);

    List<Map> getsetmealListByPhoneNumber(String phoneNumber);
}
